// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.audio.parameters;

import zombie.audio.FMODGlobalParameter;
import zombie.iso.weather.ClimateManager;

public final class ParameterWeatherEvent extends FMODGlobalParameter {
    private ParameterWeatherEvent.Event event = ParameterWeatherEvent.Event.None;

    public ParameterWeatherEvent() {
        super("WeatherEvent");
    }

    @Override
    public float calculateCurrentValue() {
        float _float = ClimateManager.getInstance().getSnowFracNow();
        if (!zombie.SandboxOptions.instance.EnableSnowOnGround.getValue()) {
            _float = 0.0F;
        }

        return (float)this.event.value;
    }

    public static enum Event {
        None(0),
        FreshSnow(1);

        final int value;

        private Event(int int1) {
            this.value = int1;
        }
    }
}
